<!DOCTYPE html>
<html>
<head>
    <title>4G GNSS控制台 - 登录</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        body {
            margin: 0;
            font-family: Arial, sans-serif;
        }
        
        #login {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            background-color: #f5f5f5;
        }
        
        .login-box {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            width: 300px;
        }
        
        .login-box input {
            width: 100%;
            padding: 8px;
            margin: 10px 0;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .login-box button {
            width: 100%;
            padding: 10px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .login-box button:active {
            background: #0056b3;
        }
    </style>
</head>
<body>
    <div id="login">
        <div class="login-box">
            <h2>4G GNSS控制台</h2>
            <input type="text" id="username" placeholder="用户名" autocomplete="username">
            <input type="password" id="password" placeholder="密码" autocomplete="current-password">
            <button onclick="login()">登录</button>
            <div id="login-error" style="color: red; margin-top: 10px;"></div>
        </div>
    </div>

    <script src="login.js"></script>
</body>
</html>